package com.sdp.khy.baotou.view;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PackageInvoiceView {

	/**
     *  内码
     */
    @TableId("key_id")
    private String keyId;
    
    /**
     * 快递单号
     */
    @TableField("package_no")
    private String packageNo;

    /**
     * 发运站
     */
    @TableField("start_station")
    private String startStation;
    
    /**
     * 发运站名
     */
    @TableField("start_station_name")
    private String startStationName;

    /**
     * 到达站
     */
    @TableField("end_station")
    private String endStation;
    
    /**
     * 到达站名
     */
    @TableField("end_station_name")
    private String endStationName;

    /**
     * 托运人姓名
     */
    @TableField("sender_name")
    private String senderName;

    /**
     * 收件人姓名
     */
    @TableField("consignee_name")
    private String consigneeName;

    /**
     * 托运人电话
     */
    @TableField("sender_phone")
    private String senderPhone;

    /**
     * 收件人电话
     */
    @TableField("consignee_phone")
    private String consigneePhone;

    /**
     * 物品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 物品件数
     */
    @TableField("goods_num")
    private Integer goodsNum;

    /**
     * 物品重量
     */
    @TableField("goods_weight")
    private BigDecimal goodsWeight;

    /**
     * 物品长
     */
    @TableField("goods_long")
    private BigDecimal goodsLong;

    /**
     * 物品宽
     */
    @TableField("goods_width")
    private BigDecimal goodsWidth;

    /**
     * 物品高
     */
    @TableField("goods_height")
    private BigDecimal goodsHeight;

    /**
     * 物品运费
     */
    @TableField("goods_freight")
    private BigDecimal goodsFreight;

    /**
     * 物品照片
     */
    @TableField("goods_photo")
    private String goodsPhoto;

    /**
     * 付款方式
     */
    @TableField("pay_mode")
    private String payMode;

    /**
     * 下单时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("order_time")
    private LocalDateTime orderTime;

    /**
     * 车辆牌照号
     */
    @TableField("plate_no")
    private String plateNo;

    /**
     * 司机姓名
     */
    @TableField("driver_name")
    private String driverName;

    /**
     * 司机工号
     */
    @TableField("driver_no")
    private String driverNo;

    /**
     * 快递状态
     */
    @TableField("package_state")
    private String packageState;

    /**
     * 运输单内码
     */
    @TableField("transport_id")
    private String transportId;

    /**
     * 付款状态
     */
    @TableField("pay_state")
    private String payState;
    
    
    /**
     * 是否已申请开票
     */
    @TableField("is_invoice")
    private String isInvoice;
    
    /**
     * 理货员姓名
     */
    @TableField("tally_clerk_name")
    private String tallyClerkName;
    
    /**
     * 理货员
     */
    @TableField("tally_clerk")
    private String tallyClerk;
    
    /**
     * 收件理货员姓名
     */
    @TableField("tally_clerk_shou_name")
    private String tallyClerkShouName;
    
    /**
     * 收件理货员
     */
    @TableField("tally_clerk_shou")
    private String tallyClerkShou;
    
    /**
     * 操作人账号
     */
    @TableField("user_no")
    private String userNo;
    
    /**
     * 开票状态
     */
    @TableField("invoice_status")
    private String invoiceStatus;
}
